﻿using System;
using System.ComponentModel;

using DevExpress.Xpo;
using DevExpress.Data.Filtering;

using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;

namespace DrugShop.Module
{
    [DefaultClassOptions]
    public class 供应商 : XPObject
    {
        public 供应商(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here or place it only when the IsLoading property is false:
            // if (!IsLoading){
            //    It is now OK to place your initialization code here.
            // }
            // or as an alternative, move your initialization code into the AfterConstruction method.
        }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }
        private string _名称;
        [Custom("Caption", "名称")]
        public string 名称
        {
            get { return _名称; }
            set { SetPropertyValue<string>("名称", ref _名称, value); }
        }
        private string _地址;
        [Custom("Caption", "地址")]
        public string 地址
        {
            get { return _地址; }
            set { SetPropertyValue<string>("地址", ref _地址, value); }
        }
        private string _电话;
        [Custom("Caption", "电话")]
        public string 电话
        {
            get { return _电话; }
            set { SetPropertyValue<string>("电话", ref _电话, value); }
        }
        private string _传真;
        [Custom("Caption", "传真")]
        public string 传真
        {
            get { return _传真; }
            set { SetPropertyValue<string>("传真", ref _传真, value); }
        }
        private string _邮政编码;
        [Custom("Caption", "邮政编码")]
        public string 邮政编码
        {
            get { return _邮政编码; }
            set { SetPropertyValue<string>("邮政编码", ref _邮政编码, value); }
        }
        private string _电子邮件;
        [Custom("Caption", "电子邮件")]
        public string 电子邮件
        {
            get { return _电子邮件; }
            set { SetPropertyValue<string>("电子邮件", ref _电子邮件, value); }
        }
        private string _联系人;
        [Custom("Caption", "联系人")]
        public string 联系人
        {
            get { return _联系人; }
            set { SetPropertyValue<string>("联系人", ref _联系人, value); }
        }
        private string _联系人电话;
        [Custom("Caption", "联系人电话")]
        public string 联系人电话
        {
            get { return _联系人电话; }
            set { SetPropertyValue<string>("联系人电话", ref _联系人电话, value); }
        }
        private string _联系人手机;
        [Custom("Caption", "联系人手机")]
        public string 联系人手机
        {
            get { return _联系人手机; }
            set { SetPropertyValue<string>("联系人手机", ref _联系人手机, value); }
        }
        private string _输入码;
        [Custom("Caption", "输入码")]
        public string 输入码
        {
            get { return _输入码; }
            set { SetPropertyValue<string>("输入码", ref _输入码, value); }
        }

    }

}
